import math


class polinomio:
	
	def __init__(self,a,b,c):
		self._a=a
		self._b=b
		self._c=c
	
	def buscar_raices(self):
		if (self._a==0):
			return False
		else:
			print (-1*self._b+self.calcularraiz()/2*self._a)
		
	def calcularraiz(self):
		c=math.pow(self._b,2)
		d=4*self._a*self._c
		return (c-d)**(1/2)


polinomio=polinomio(2,2,1)
polinomio.buscar_raices()

